/**
 * Copyright(c) 2013 Jade Techonologies Co., Ltd.
 *
 * History:
 *   13-7-11 下午1:38 Created by sky
 */
package com.jade.modules.message.sms.comm;

import com.jade.framework.base.comm.RequestMessage;

/**
 * SMS协议请求。
 *
 * @author sky
 * @version 1.0 13-7-11 下午1:38
 */
public abstract class SmsRequest
        extends SmsProtocolMessage
        implements RequestMessage
{
    protected SmsRequest(int commandId)
    {
        super(commandId);
    }

    protected SmsRequest(int commandId, int sequenceId)
    {
        super(commandId, sequenceId);
    }

    @Override
    public boolean isRequest()
    {
        return true;
    }

    public boolean isResponse()
    {
        return false;
    }

    public boolean isDataRequest()
    {
        return false;
    }

    /**
     * 创造请求对应的相应。
     *
     * @return 响应对象
     */
    public abstract <Response extends SmsResponse> Response createResponse();
}
